package com.devplatform.pojo.vo;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class ResetPwdVo {
    @NotBlank(message = "邮件不能为空")
    @Email(message = "邮件格式不正确")
    private String email;

    @NotBlank(message = "验证码不能为空")
    private String emailCode;

    @NotBlank(message = "新密码不能为空")
    @Pattern(regexp = "^(?=.*[0-9])(?=.*[a-zA-Z]).{8,}$", message = "至少8位数且包含字母、数字")
    private String newPassword;
}
